﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SharedLibraries.Constants
{
    public class Log_iType_C
    {
        public const Int16 Exception = 1;
        public const Int16 _404 = 2;
        public const Int16 AccessDenied = 3;
        public const Int16 Other = 0;
    }

    public class Media_iType_C
    {
        public const Int16 Choi_Game = 301;
        public const Int16 Tai_Game = 302;
        public const Int16 Xem_Phim_TV_Online = 303;
        public const Int16 Nghe_Nhac_Radio = 304;
        public const Int16 Sach_Truyen = 305;
        public const Int16 Hinh_Anh_Dong = 306;
        public const Int16 Doc_Va_La = 307;
        public const Int16 Ung_Dung = 308;
    }

    public class Media_sType_C
    {
        public const string Choi_Game = "choi-game";
        public const string Tai_Game = "tai-game";
        public const string Xem_Phim_TV_Online = "xem-phim-tv-online";
        public const string Nghe_Nhac_Radio = "nghe-nhac-radio";
        public const string Sach_Truyen = "sach-truyen";
        public const string Hinh_Anh_Dong = "hinh-anh-dong";
        public const string Doc_Va_La = "doc-va-la";
    }

    //public class TableID_C
    //{
    //    public const Int16 Default = 0;
    //    public const Int16 Category = 1;
    //    public const Int16 Topic = 2;
    //    public const Int16 Media = 3;
    //    public const Int16 QuestionAnswer = 4;
    //    public const Int16 Answer = 44;
    //    public const Int16 Account = 5;
    //    public const Int16 File = 6;
    //    public const Int16 Quiz = 7;
    //    public const Int16 Other = 9;

    //    public const Int16 Function = 20;
    //    public const Int16 Sitemap = 21;
    //    public const Int16 Temp = 22;
    //    public const Int16 Database = 23;
    //    public const Int16 Tag = 24;
    //    public const Int16 Error = 25;
    //    public const Int16 EditSourceFile = 26;
    //    public const Int16 Group = 27;
    //    public const Int16 BackLink = 28;
    //    public const Int16 Advertise = 29;
    //    public const Int16 MetaTag = 30;
    //    public const Int16 NewsLetter = 31;
    //    public const Int16 Permission = 32;
    //    public const Int16 TSQL = 33;
    //    public const Int16 SEO = 34;

    //    public const Int16 Tool = 99;
    //}

    public class TitleSEO
    {
        public const string BaiViet_Ex = " | Chia sẻ bài viết";
        public const string GiaiTri_Ex = " | Giải trí";
        public const string DanhMuc_Ex = " | Danh mục bài viết";
        public const string HoiDap_Ex = " | Hỏi - Đáp";
        public const string TaiFile_Ex = " | Chia sẻ file";
        public const string CongCu_Ex = " | Công cụ";
        public const string ThanhVien_Ex = " | Thành viên";
        public const string TaiFile = "Tải file";
        public const string HoiDap = "Hỏi - Đáp";
        public const string LienHe = "Liên hệ";
        public const string TrangChu = "Trang chủ";
        public const string DSBaiViet = "Danh sách bài viết chia sẻ";
        public const string DSGiaiTri = "Danh sách giải trí";
        public const string Trang = " - Trang {0}";
    }

    public class TYPE
    {
        public const Int16 sName = 1;
        public const Int16 sTitle = 2;
        public const Int16 sTitleEx = 3;
    }


    //public class Table_Name_C
    //{
    //    public const string Account = "[Tài khoản]";
    //    public const string Category = "[Danh mục]";
    //    public const string Database = "[Cơ sở dữ liệu SQL Server]";
    //    public const string Topic = "[Bài viết]";
    //    public const string Media = "[Giải trí]";
    //    public const string Tag = "[Nhãn]";
    //    public const string File = "[Chia sẻ File]";
    //    public const string QuestionAnswer = "[Hỏi - Đáp]";
    //    public const string Error = "[Lỗi hệ thống]";
    //    public const string EditSourceFile = "[Chỉnh sửa file]";
    //    public const string Group = "[Nhóm bài viết]";
    //    public const string BackLink = "[Liên kết link]";
    //    public const string Advertise = "[Quảng cáo]";
    //    public const string Sitemap = "[Bản đồ website]";
    //    public const string MetaTag = "[Thẻ SEO]";
    //    public const string NewsLetter = "[Đăng ký nhận tin]";
    //    public const string Function = "[Chức năng hệ thống]";
    //    public const string Permission = "[Phân quyền cho người dùng]";
    //    public const string TSQL = "[Truy vấn Database SQL Server]";
    //    public const string SEO = "[Tối ưu công cụ tìm kiếm - SEO]";
    //    public const string Quiz = "[Thi trắc nghiệm - Đố]";
    //    public const string Wedding = "[Khách mời]";
    //    public const string Url_Change = "[Thay đổi đường dẫn]";

    //    public static string Default { get; set; }
    //}

    public class FileNameByFunction
    {
        public const string Answer_q = "answer.aspx?q=";
        public const string Hoi_Dap_ = "hoi-dap/";
        public const string Hoi_Dap = "hoi-dap";

        public const string Author_u = "author.aspx?u=";
        public const string Tac_Gia_ = "thanh-vien/";
        public const string Tac_Gia = "thanh-vien";

        public const string Category_c = "category.aspx?c=";
        public const string Danh_Muc_ = "danh-muc/";
        public const string Danh_Muc = "danh-muc";

        public const string Download_f = "download.aspx?f=";
        public const string Tai_File_ = "tai-file/";
        public const string Tai_File = "tai-file";

        public const string Media_g = "media.aspx?g=";
        public const string Game_m = "game.aspx?m=";
        public const string Giai_Tri_ = "giai-tri/";
        public const string Giai_Tri = "giai-tri";

        public const string Topic_t = "topic.aspx?t=";
        public const string Bai_Viet_ = "bai-viet/";
        public const string Bai_Viet = "bai-viet";

        public const string Tool_i = "tool.aspx?m=";
        public const string Cong_Cu_ = "cong-cu/";
        public const string Cong_Cu = "cong-cu";

        //public const string Trang = "trang-";
        //public const string _Trang = "/trang-";


        public const string Default = "default.aspx";
        public const string ShareFile = "sharefile.aspx";
        public const string Token = "token.aspx?key=";
        public const string EditFile = "~/admin/editsourcefileui.aspx?f=";
        public const string _404 = "404.html";
        public const string HTML = ".html";
        public const string ID_HTML = ".[ID].html";
        public const string ID = "[ID]";
        public const string Slash = "/";
    }

    //public class funcButtonToolBar
    //{
    //    public const Int16 MAIN = 0;
    //    public const Int16 INSERT_LIST = 1;
    //    public const Int16 INSERT_ITEM = 2;
    //    public const Int16 UPDATE_ITEM = 3;
    //    public const Int16 DELETE_LIST = 4;
    //    public const Int16 DELETE_ITEM = 5;
    //    public const Int16 REFRESH_LIST = 6;
    //    public const Int16 EXPORT_EXCEL = 7;
    //    public const Int16 RESET_FORM = 8;
    //    public const Int16 PREVIEW_TOPIC = 9;
    //    public const Int16 BACK_LIST = 10;

    //    public const Int16 LIST = 11;
    //    public const Int16 DETAIL = 12;
    //    public const Int16 INSERT = 13;
    //    public const Int16 VIEWFILE = 14;
    //    public const Int16 NA = 15;
    //    public const Int16 OTHER = 16;
    //}

    //public class FunctionType
    //{
    //    public const Int16 Default = 0;
    //    public const Int16 Insert = 1;
    //    public const Int16 Update = 2;
    //    public const Int16 Delete = 3;
    //    public const Int16 View = 4;
    //    public const Int16 InsertNew = 5;
    //    public const Int16 InsertComment = 6;
    //}





    public class ChangeFreq_C
    {
        public const string always = "always";
        public const string hourly = "hourly";
        public const string daily = "daily";
        public const string weekly = "weekly";
        public const string monthly = "monthly";
        public const string yearly = "yearly";
        public const string never = "never";
    }

    public class BIT
    {
        public const Int16 iTrue = 1;
        public const Int16 iFalse = 0;
    }

    public class ExtendFile_C
    {
        public const Int16 FLV = 1;
        public const Int16 MP4 = 2;
        public const Int16 OGG = 3;
        public const Int16 WEBM = 4;
        public const Int16 F4V = 5;
        public const Int16 MKV = 6;
        public const Int16 AVI = 7;
        public const Int16 _3G2 = 8;
        public const Int16 MOV = 9;
        public const Int16 MPG = 10;
        public const Int16 WMV = 11;
        public const Int16 JPG = 12;
        public const Int16 PNG = 13;
        public const Int16 GIF = 14;
        public const Int16 SWF = 15;

        public const Int16 ZIP = 16;
        public const Int16 RAR = 17;
        public const Int16 HTML = 18;
        public const Int16 CSS = 19;
        public const Int16 JS = 20;
        public const Int16 JAVA = 21;
        public const Int16 CS = 22;
        public const Int16 VB = 23;
        public const Int16 TXT = 24;
        public const Int16 JSON = 25;
        public const Int16 XML = 26;
        public const Int16 DOC = 27;
        public const Int16 DOCX = 28;
        public const Int16 XLS = 29;
        public const Int16 XLSX = 30;
        public const Int16 PPT = 31;
        public const Int16 PPTX = 32;
    }

    public class TypeSiteMap
    {
        public const Int16 Homepage = 1;
        public const Int16 Category_0 = 2;
        public const Int16 Category_1 = 3;
        public const Int16 Category_2 = 4;
        public const Int16 Topic_0 = 5;
        public const Int16 Topic_1 = 6;
        public const Int16 Media_0 = 7;
        public const Int16 Media_1 = 8;
        public const Int16 QuestionAnswer = 9;
        public const Int16 Account = 10;
        public const Int16 File = 11;
        public const Int16 Never = 12;
    }

    public class QueryString
    {
        public const string file = "f";
        public const string category = "c";
        public const string question = "q";
        public const string page = "p";
        public const string media = "m";
        public const string topic = "t";
        public const string group = "g";
        public const string username = "u";
        public const string request = "r";
        public const string type = "t";
        public const string return_url = "return_url";
        public const string token = "token";
        public const string key = "key";
        public const string _404 = "404";
        public const string wedding = "td";
    }

    public class Email_iType_C
    {
        public const Int16 Happy_Birthday = 1;
        public const Int16 Happy_New_Year = 2;
        public const Int16 Login = 3;
        public const Int16 Lost_Password = 4;
        public const Int16 Notification_Comment = 5;
    }

    public class Email_iStatus_C
    {
        public const Int16 WAIT = 1;
        public const Int16 OK = 2;
        public const Int16 NOT_OK = 3;
    }

    //public class FunctionSetMsg
    //{
    //    public const Int16 ERROR = 0;
    //    public const Int16 SUCCESS = 1;
    //    public const Int16 INFO = 2;
    //    public const Int16 WARNING = 3;
    //    public const Int16 DANGER = 4;
    //}

    public class Topic_sCode_C
    {
        public const Int16 shCore = 1;
        public const Int16 shBrushA3 = 2;
        public const Int16 shBrushBash = 3;
        public const Int16 shBrushColdFusion = 4;
        public const Int16 shBrushCpp = 5;
        public const Int16 shBrushCSharp = 6;
        public const Int16 shBrushCss = 7;
        public const Int16 shBrushDelphi = 8;
        public const Int16 shBrushDiff = 9;
        public const Int16 shBrushErlang = 10;
        public const Int16 shBrushGroovy = 11;
        public const Int16 shBrushJava = 12;
        public const Int16 shBrushJavaFX = 13;
        public const Int16 shBrushJScript = 14;
        public const Int16 shBrushPerl = 15;
        public const Int16 shBrushPhp = 16;
        public const Int16 shBrushPlain = 17;
        public const Int16 shBrushPowerShell = 18;
        public const Int16 shBrushPython = 19;
        public const Int16 shBrushRuby = 20;
        public const Int16 shBrushScala = 21;
        public const Int16 shBrushSql = 22;
        public const Int16 shBrushVb = 23;
        public const Int16 shBrushXml = 24;
        public const Int16 shCore_css = 25;
        public const Int16 shThemeDefault_css = 26;
    }

    //public class MetaTag_C
    //{
    //    public const string name = "name";
    //    public const string itemprop = "itemprop";
    //    public const string property = "property";
    //}

    public class Topic_iStatus_C
    {
        public const Int16 All = 0;
        public const Int16 Approved = 1;
        public const Int16 Pending = 2;
        public const Int16 Deleted = 3;
        public const Int16 ReView = 9; // 1 + 2
    }

    public class Account_iPermission_C
    {
        public const Int16 Administrator = 1;
        public const Int16 Editor = 2;
        public const Int16 Visistor = 3;
        public const Int16 Followers = 4;
        public const Int16 Anonymous = 5;
    }

    public class Tool_Type_C
    {
        public const Int16 Group_String = 1100;
        public const Int16 String_Count_Character_Word = 1101;
        public const Int16 String_Upper_Lower_Upper_Firt = 1102;
        public const Int16 String_Reverse = 1103;

        public const Int16 Group_Encode_Decode = 1200;
        public const Int16 Encode_Decode_MD5 = 1201;
        public const Int16 Encode_Decode_SHA1 = 1202;
        public const Int16 Encode_Decode_Url = 1203;
        public const Int16 Encode_Decode_Html = 1204;

        public const Int16 Group_Generator = 1300;
        public const Int16 Generator_Number_Password = 1301;
        public const Int16 Generator_BarCode_QRCode = 1302;
        public const Int16 Generator_Image_Watermark = 1303;
        public const Int16 Generator_Guid_MD5 = 1304;

        public const Int16 Group_Convert = 1400;
        public const Int16 Convert_String_Hex = 1401;
        public const Int16 Convert_String_Binary = 1402;
        public const Int16 Convert_String_Base64 = 1403;
        public const Int16 Convert_Decimal_Binary = 1404;
        public const Int16 Convert_Decimal_Hex = 1405;

        public const Int16 Group_Color = 1500;
        public const Int16 Color_Hex = 1501;
        public const Int16 Color_RBG = 1502;
        public const Int16 Color_Name = 1503;

        public const Int16 Group_Calculator = 1600;
        public const Int16 Calculator_Flash = 1601;

        public const Int16 Group_Other = 1700;
    }

    public class File_iServer_C
    {
        public const Int16 Google_Code = 1;
        public const Int16 Google_Driver = 2;
        public const Int16 Dropbox = 3;
        public const Int16 Box = 4;
        public const Int16 One_Driver = 5;
        public const Int16 Media_Fire = 6;
    }

    public class Temp_PK_iTempID_C
    {
        public const Int16 gSYNC = 1;
        public const Int16 CHART = 2;
        public const Int16 NOTIFICATION = 3;
        public const Int16 SITEMAP_XML = 4;
        public const Int16 SITEMAP_HTML = 5;
        public const Int16 RSS = 6;
        public const Int16 tBUILD = 7;
        public const Int16 MENU_TOOL = 8;
        public const Int16 tREQUEST = 9;
    }
}